<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/commonJS.jsp" %>
<%@ include file="../common/commonLabel.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>生产日报信息列表</title>
</head>
<script type="text/javascript">
function doDeltype(tid){
	if(confirm("您确定要删除吗?")){
		document.all.operate.value = "delinfo";
		document.all.taskid.value = tid;
      	document.forms[0].submit();
	}
}

function doUpdType(tid){
	doQueryMess("<%=request.getContextPath() %>/dailypaper.action?operate=updpage&tid="+tid,"","380","500");
}
function doStart(tid,mid){
	if(confirm("确定开工吗？")){
		document.all["machineid"].value = mid;
		document.all["taskid"].value = tid;
		document.all["operate"].value = "dostart";
		document.forms[0].submit();
	}
}
</script>
<body>
<form action="<%=request.getContextPath()%>/dailypaper.action" method="post">
<table width="80%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
     <td>
     <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" class="MainBody">
      <tr>
        <td width="760" class="MainBody_title"><hello:forValue type="title" /></td>
      </tr>
      <tr>
        <td class="MainBody_body" ><input name="operate" type="hidden" value=""/>
        <input name="taskid" type="hidden" value=""/>
        <input name="machineid" type="hidden" value=""/>
        <input name="createuser" type="hidden" value="${sessionScope.admin_user.personname}"/>
        <table border="0" cellpadding="0" cellspacing="0"  class="MainBody_table">
           <tr>
				<th nowrap="nowrap">序号</th>
				<th nowrap="nowrap">生产单名称</th>
				<th nowrap="nowrap">机台名称</th>
				<th nowrap="nowrap">正品数量</th>
				<th nowrap="nowrap">次品数量</th>
				<th nowrap="nowrap">合计数量</th>
				<th nowrap="nowrap">开始时间</th>
				<th nowrap="nowrap">完成时间</th>
				<th nowrap="nowrap">备注信息</th>
				<th nowrap="nowrap">操作</th>
			</tr>
		<c:forEach items="${listinfo}" varStatus="status" var="rows">
			<tr>
				<td nowrap="nowrap">${status.index+1}</td>
				<td align="center" nowrap="nowrap"><a href="<%=request.getContextPath()%>/taskSel.action?tid=${rows.tid}&oid=${rows.oid}" title="生产单详细信息">
				${rows.taskName}</a></td>
				<td nowrap="nowrap">${rows.machinename}</td>
				<td nowrap="nowrap">${rows.rightnum}</td>
				<td nowrap="nowrap">${rows.errornum}</td>
				<td nowrap="nowrap">${rows.total}</td>
				<td nowrap="nowrap">${rows.starttime}</td>
				<td nowrap="nowrap">${rows.endtime}</td>
				<td nowrap="nowrap">${rows.remark}</td>
				<td nowrap="nowrap">
				<span class='RoleSpan' onclick="doUpdType('${rows.taskid}')" title='修改报告信息' style='color: green;' onmouseout="doMsOut('green')" onmouseover='doMsOver()'>修改</span>&nbsp;&nbsp;
				<span class='RoleSpan' onclick="doDeltype('${rows.taskid}')" title='删除该物料信息' style='color: red;' onmouseout="doMsOut('red')" onmouseover='doMsOver()'>删除</span>
				</td> 
			</tr>
			</c:forEach>
          <c:if test="${empty listinfo}">
			<tr>
				<td colspan="10" align="center">暂时没有您可以浏览的数据</td>
			</tr>
		</c:if>
          </table>
          <c:if test="${!empty listinfo}">
          <table border="0" cellpadding="0" cellspacing="0" class="MainBody_fun">
            <tr>
              <td>
               <hello:AllPage />
			  </td>
            </tr>
          </table>
          </c:if>
          </td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>